//
//  NXViewController.m
//  NXShareViewKit
//
//  Created by 790030601@qq.com on 03/13/2018.
//  Copyright (c) 2018 790030601@qq.com. All rights reserved.
//

#import "NXViewController.h"
#import "NXSharedView.h"

@interface NXViewController ()

@property (nonatomic, strong) NXSharedView *sharedView;//分享页面

@end

@implementation NXViewController

- (void)viewDidLoad
{
    [super viewDidLoad];

}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    
    [self shareView];
    
}

- (void)shareView {
    self.sharedView = [[NXSharedView alloc]initWithStyle:NXSharedViewStyleLittle];
    [[[UIApplication sharedApplication] keyWindow] addSubview:self.sharedView];
}

@end
